// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

import request from "@/utils/request.js";


/**
 * 入驻申请
 * @param object data
 *
 */
export function tecer_join(data) {
	return request.post('tecer_join', data, {
		noAuth: true
	});
}

/**
 * 入驻详情
 *
 */
export function tecer_join_detail() {
	return request.get('tecer_join_detail', {}, {
		noAuth: true
	});
}

/**
 * 技工分类
 *
 */
export function tecer_cate_list() {
	return request.get('tecer_cate_list', {}, {
		noAuth: true
	});
}

/**
 * 技工技能列表
 *
 */
export function tecer_tecs_list() {
	return request.get('tecer_tecs_list', {}, {
		noAuth: true
	});
}

/**
 * 技工擅长项目列表
 *
 */
export function tecer_items_list() {
	return request.get('tecer_item_list', {}, {
		noAuth: true
	});
}

/**
 * 保存擅长项目
 * @param object data
 *
 */
export function tecer_save_item(data) {
	return request.post('tecer_item_save', data, {
		noAuth: true
	});
}
/**
 * 保存技能证书
 * @param object data
 *
 */
export function tecer_save_tec(data) {
	return request.post('tecer_tec_save', data, {
		noAuth: true
	});
}

/**
 * 推荐技工列表
 *
 */
export function rec_tecer_list() {
	return request.get('tecer_list', {}, {
		noAuth: true
	});
}

/**
 * 拨打记录
 *
 */
export function user_call_list() {
	return request.get('user_call_list', {}, {
		noAuth: true
	});
}

/**
 * 接听记录
 *
 */
export function user_receive_list() {
	return request.get('user_receive_list', {}, {
		noAuth: true
	});
}

/**
 * 删除拨打记录
 * @param int id
 * 
 */
export function del_call_record(id) {
	return request.get('del_call_record/' + id, {}, {
		noAuth: true
	});
}

/**
 * 用户详情
 * @param int id
 * 
 */
export function tecer_info(id) {
	return request.get('tecer_info/' + id, {}, {
		noAuth: true
	});
}

/**
 * 平台设置
 * @param int id
 * 
 */
export function get_platform_setting() {
	return request.get('get_platform_setting', {}, {
		noAuth: true
	});
}

/**
 * 技工信息
 * @param int id
 * 
 */
export function get_tecer_info() {
	return request.get('tecer_get_info', {}, {
		noAuth: true
	});
}

/**
 * 保存技工信息
 * @param object data
 *
 */
export function tecer_info_save(data) {
	return request.post('tecer_info_save', data, {
		noAuth: true
	});
}